<template>
  <div class="xsection">
    <div class="xsect">
      <span><img src="../../assets/img/xd.png"></span>
      <span>奚梦瑶同款<br/><i>Nov/21</i></span>
    </div>
    <!--长篇文字-->
    <div class="xintroduce">
      <p>奚梦瑶出发2017维密大秀前往秀场LOOK，身着LOEWE
        男装牛仔外套，破洞牛仔裤来自JBrand，搭配Nike小白鞋，
        随性时髦，温度风度兼顾
      </p>
    </div>
    <!--文中提到-->
    <div class="xgoodslist">
      <div class="xgoodst">
        <h4 class="xpay">文化中提到的单品</h4>
      </div>
      <div class="xpic">
        <img :src="item.img3">
        <p>{{item.txt3}}</p>
        <h4>￥{{item.price1}}</h4>
        <p>shopop阶梯降价</p>
      </div>
      <!--按钮-->
      <div class="xanniu">
        <div class="xlittle">
          <button><i class="iconfont icon-shoucang"></i>收藏</button>
          <button><i class="iconfont icon-shoppingcart"></i>立即购买</button>
        </div>
      </div>
    </div>
    <div class="xfree"></div>
    <!--相似单品-->
    <div class="xsimal">
      <ul>
        <li  class="xsimalt"><h4>相似单品</h4></li>
        <li>
          <div class="xsimalbl xpub">
            <p><i class="iconfont icon-shoucang"></i></p>
            <img :src="item.img4">
            <div class="xwod">
              <p>{{item.txt4}}</p>
              <h4>￥{{item.price2}}</h4>
              <span>{{item.txt5}}</span>
            </div>
          </div>
          <div class="xsimalbr xpub">
            <p><i class="iconfont icon-shoucang"></i></p>
            <img :src="item.img5">
            <div class="xwod">
              <p>{{item.txt6}}</p>
              <h4>￥{{item.price3}}</h4>
              <span>{{item.txt7}}</span>
            </div>
          </div>
        </li>
        <li>
          <div class="xsimalbl xpub">
            <p><i class="iconfont icon-shoucang"></i></p>
            <img :src="item.img6">
            <div class="xwod">
              <p>{{item.txt6}}</p>
              <h4>￥{{item.price3}}</h4>
              <span>{{item.txt7}}</span>
            </div>
          </div>
          <div class="xsimalbr xpub">
            <p><i class="iconfont icon-shoucang"></i></p>
            <img :src="item.img7">
            <div class="xwod">
              <p>{{item.txt6}}</p>
              <h4>￥{{item.price3}}</h4>
              <span>{{item.txt7}}</span>
            </div>
          </div>
        </li>
      </ul>
    </div>
  </div>
</template>

<script type="text/ecmascript-6">
  import GoodsApi from "../../apis/bshopapis";
    export default {
      created:function(){
        this.initdetails()
      },
      methods:{
        initdetails:function(){
          var {id}=this.$route.query;
          GoodsApi.getDetailsList((data)=>{
            this.item=data[id];
          })
        }
      },
      data(){
        return{
          item:[]
        }
      }
    }
</script>
<style lang="scss">
  .xsection{
    width: 100%;
    flex: 1;
    padding-top: 0.3rem;
    background: white;
    /*margin-top: 1rem;*/
  }
  .xsect{
    display: flex;
    padding: 0 0.3rem;
    span:last-child{
      margin-left: 0.1rem;
      color: #1B1B1B;
      i{
        color: #6e6e6e;
      }
    }
  }
  .xsimalt h4{
    text-align: center;
    font-size: 16px;
    border-bottom: 1px solid #1B1B1B;
    color: #1B1B1B;
    margin:  0 auto;
    width: 20%;
  }
  .xintroduce{
    padding:0.2rem 0 0.4rem 0;
  }
  .xintroduce p{
    padding: 0 0.3rem;
    font-size: 16px;
    color: #1B1B1B;
  }
  a{
    color: #dddddd;
  }
  .xsect span{
    font-size: 14px;
  }
  .xsect span img{
    width: 0.34rem;
    height: 0.34rem;
  }
  .xgoodslist{
    padding: 0.2rem 0;
    background: white;
    border-bottom: 1px solid #dddddd;
  }
  .xgoodst{
    border-bottom: 1px solid #dddddd;
    padding-bottom: 0.2rem;
  }
  .xpay{
    text-align: center;
    font-size: 16px;
    border-bottom: 1px solid #1B1B1B;
    color: #1B1B1B;
    margin:  0 auto;
    width: 35%;
  }
  .xpic {
    width: 100%;
    padding-top: 0.3rem;
    line-height: 0.25rem;
  }
  .xpic img{
    /*width: 0.8rem;*/
    height: 1.5rem;
    margin:0 auto;
    padding-bottom: 0.2rem;
  }
  .xpic p{
    color: #1B1B1B;
    font-size: 16px;
  }
  .xpic p:last-child{
    width: 35%;
    background: #1B1B1B;
    color: white;
    margin:  0 auto;
    font-size: 14px;
  }
  .xpic{
    text-align: center;
    font-size: 16px;
    color: #1B1B1B;
  }
  .xanniu{
    margin-top: -0.25rem;
  }
  .xlittle{
    width: 64%;
    margin-left: 22%;
    margin-top: 16%;
  }
  .xanniu button{
    font-size: 14px;
    margin: 0 auto;
    width: 1.05rem;
    height: 0.45rem;
    background: transparent;
    outline: none;
    border: 0;
    border: 1px solid #535353;
    color: #6e6e6e;
  }
  .xfree{
    width: 100%;
    height: 0.2rem;
    background: #f7f7f7;
  }
  .xsimalt{
    border-bottom: 1px solid #dddddd;
    padding: 0.25rem 0;
  }
  .xsimal{
    border-bottom: 1px solid #6e6e6e;
  }
  .xsimal ul li:not([class=xsimalt]){
    width: 100%;
    color: #1B1B1B;
    display: flex;
    font-size: 16px;
    border-bottom: 1px solid #dddddd;
  }
  .xpub{
    border-right: 1px solid #dddddd;
    width: 50%;
    position: relative;
    //display: flex;
    padding-bottom: 0.2rem;
    i{
      position: absolute;
      right: 0.1rem;
      top: 0.2rem;
    }
    img{
      /*width: 1rem;*/
      height: 1rem;
      margin: 0.5rem auto;
    }
  }
  .xwod{

    line-height: 0.25rem;
    width: 97%;
    margin-left: 0.1rem;
    //margin-right: 0.1rem;
    :last-child{
      font-size: 13px;
      color: #6e6e6e;
    }
    p{
      margin-right: 0.1rem;
      font-size: 13px;
      color: #1B1B1B;
    }
  }
</style>
